package com.kayt.cyberBar.cpublic.business.server;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cpublic.business.entity.po.CPublicKey;
import com.kayt.cyberBar.cpublic.business.entity.vo.PublicKeyVO;
import com.kayt.cyberBar.cpublic.business.entity.vo.PublicQueryVO;

public interface IPublicKeyServer {

	public CPublicKey add_key();

	public int update_key(PublicKeyVO vo);

	public Integer delete_key_by_code(String code);

	public CPublicKey get_key(PublicKeyVO vo);

	public CPublicKey get_key_by_code(String paramCode);

	public PublicKeyVO assemble_vo(CPublicKey key);

	public ServerResponse<PublicKeyVO> assemble_result(CPublicKey key);

	public ServerResponse<String> assemble_result_string(int base);

	public ServerResponse<PageData<PublicKeyVO>> assemble_result_list(PageData<CPublicKey> pageData);

	public PageData<CPublicKey> get_key_list(PublicQueryVO query);

	public boolean check_validate(PublicKeyVO vo);

}
